package org.apache.dolphinscheduler.dao.mapper;

import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RolePermissionMapper {

    int insert(@Param("roleId") Integer roleId, @Param("permissionIds") List<Integer> permissionIds);
    int deleteByPermissionId(Integer permissionId);
    int deleteByRoleId(Integer roleId);
    List<Integer> listIdsByRoleId(Integer roleId);

}
